import java.awt.event.ActionEvent;

import javax.swing.JButton;


public class Lightning extends RandomEvent {
	JButton ok;
	public Lightning(MainCardPanel display, Party p) {
		super(display, p);
		ok = new JButton("ok");
		imageFilename = "Lightning.jpg";
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		super.actionPerformed(e);
		p.killEveryone();

	}

	@Override
	public void decay() {
		super.decay();
		if (dead)
			return;
		dead = true;
		return;
	}

	@Override
	public JButton[] getResponseElements() {

		JButton[] ret = new JButton[1];
		ret[0] = ok;
		return ret;
	}

}
